package com.woniu.mapper;
import com.woniu.entity.RawMaterial;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface RawMaterialMapper {
    List<RawMaterial> findAll();
    RawMaterial findByMaterialId(Integer materialId);
    RawMaterial findByProcureId(String procureId);
    int updateRwStatus(@Param("procureId") String procureId, @Param("status") Integer status);

    Integer add(RawMaterial record);
    Integer delete(Integer materialId);
    Integer update(RawMaterial record);
    List<RawMaterial> findOne();
    List<RawMaterial> findTwo();

    List<RawMaterial> findByStatus();
    List<RawMaterial> findByCondition(RawMaterial rawMaterial);
    List<RawMaterial> findByCondition1(RawMaterial rawMaterial);
    List<RawMaterial> findByCondition2(RawMaterial rawMaterial);

    int update1(@Param("materialId") Integer materialId, @Param("status") Integer status);
}